package com.wxp.demo09.apply.receiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

import com.wxp.demo09.apply.BroadOrderActivity;
import com.wxp.demo09.util.LogUtils;
import com.wxp.demo09.util.ToastUtil;

/**
 * 有序广播接收器-A
 */
public class OrderAReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        if (intent != null && BroadOrderActivity.ORDER_ACTION.equals(intent.getAction())) {
            LogUtils.debug("接收器A收到一个有序广播");
            ToastUtil.show(context, "接收器A收到一个有序广播");
        }
    }
}
